<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<style>
	.form-item {
		margin: 20px 10px;
	}
	
	.form-item>label {
		letter-spacing: 3px;
		width: 110px;
		text-align: right;
		display: inline-block;
	}
	
	.form-item>label:AFTER {
		content: ":";
	}
	
	.form-item input[type=text] {
		width: 100px;
	}
	
	.form-item.required>label:BEFORE {
		content: "*";
		color: red;
	}
</style>
<form id="signForm" method="post" style="margin: 15px auto;" enctype="multipart/form-data">
	<input type="hidden" name="userId" value="${user.userId }">
	<h3 style="text-align: center;">添加签约记录</h3>
	<div class="form-item required">
		<label for="">学生姓名</label>
		<input type="hidden" name="signId" value="${signingrecordEntity.signId}"/>
		<input type="hidden" name="inputstuId" value="${signingrecordEntity.inputstuId.inputstuId}"/>
		<input name="inputstuName" value="${signingrecordEntity.inputstuId.inputStuName != null ? signingrecordEntity.inputstuId.inputStuName : inputStuEntity.inputStuName}" type="text" data-options="required:true" class="easyui-textbox">
		
		<label for=""style="margin-left:7%">咨询师姓名</label>
		<input type="hidden" name="userInfoId" value="${signingrecordEntity.userinfoId.userInfoId}"/>
		<%-- <input name="userInfoName" value="${signingrecordEntity.userinfoId.userName}" type="text" data-options="required:true" class="easyui-textbox"> --%>
		<select name="userInfoName" class="easyui-combobox" style="width:100px;height:25px;border-radius: 5px;border:1px solid lightblue;">
			<option>请选择咨询师</option>
			<c:choose>
				<c:when test="${signingrecordEntity.userinfoId.userName!=null}">
					<c:forEach items="${consultant}" var="consultant">
						<option ${consultant.userName == signingrecordEntity.userinfoId.userName ? 'selected' : ''}>${consultant.userName}</option>
					</c:forEach>
				</c:when>
				<c:otherwise>
					<c:forEach items="${consultant}" var="consultant">
						<option ${consultant.userName}>${consultant.userName}</option>
					</c:forEach>
				</c:otherwise>
			</c:choose>
			
		</select>
	</div>
	<div class="form-item required">
		<label for="">学制</label>
		<select style="height:24px;border-radius: 5px;border-color: dodgerblue;"
			name="signSchLength">
			<option value="18个月" ${signingrecordEntity.signSchLength=='18个月' ? 'selected' : ''}>18个月</option>
			<option value="12个月" ${signingrecordEntity.signSchLength=='12个月' ? 'selected' : ''}>12个月</option>
		</select>
		
		<label for="" style="margin-left:14%">学费</label>
		<input name="signTuition" value="${signingrecordEntity.signTuition}" type="text" data-options="required:true" class="easyui-textbox">
		<input type="hidden" name="signTime" value="${signingrecordEntity.signTime}"/>
	</div>
	<div class="form-item required"">
		<label for="">上传凭证</label>
		<input name="file" type="file" style="margin-top:-10px" data-options="required:true" />
	</div>
	<div class="form-item">
		<label for="">备注</label><br />
		<textarea name="addplus" style="margin-left:21%;border:1px solid lightblue;width:360px;height:100px;border-radius: 5px;">${signingrecordEntity.addPlus}</textarea>
	</div>
</form>